﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectorMapApp
{
    public class Story
    {

        #region declare variables
        private bool showBubble;
        public bool ShowBubble
        {
            get { return showBubble; }
            set { showBubble = value; }
        }

        private int storyID;
        public int StoryID
        {
            get { return storyID; }
            set { storyID = value; }
        }

        private int categoryID;
        public int CategoryID
        {
            get { return categoryID; }
            set { categoryID = value; }
        }

        private int timeSlotID;
        public int TimeSlotID
        {
            get { return timeSlotID; }
            set { timeSlotID = value; }
        }

        private double storyLatitude;
        public double StoryLatitude
        {
            get { return storyLatitude; }
            set { storyLatitude = value; }
        }

        private double storyLongitude;
        public double StoryLongitude
        {
            get { return storyLongitude; }
            set { storyLongitude = value; }
        }

        private string storyContent;
        public string StoryContent
        {
            get { return storyContent; }
            set { storyContent = value; }
        }

        private DateTime lastView;
        public DateTime LastView
        {
            get { return lastView; }
            set { lastView = value; }
        }

        #endregion

        /// <summary>
        /// Creates a story object with content
        /// </summary>
        /// <param name="ID">the unique id of the story</param>
        /// <param name="catID">the id of the story category</param>
        /// <param name="timeID">the id of the story time slot</param>
        /// <param name="latitude">the latitudinal coordinate of the story</param>
        /// <param name="longitude">the longitudinal coordinate of the story</param>
        /// <param name="content">the text of the story (actual story content)</param>
        public Story(int ID, int catID, int timeID, double latitude, double longitude, string content, bool bubbleShow)
        {
            storyID = ID;
            categoryID = catID;
            timeSlotID = timeID;
            storyLatitude = latitude;
            storyLongitude = longitude;
            storyContent = content;
            showBubble = bubbleShow;
        }

        public Story()
        {

        }
    }
}
